/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.apache.carbondata.core.carbon.metadata.blocklet.compressor;

import java.io.Serializable;

/**
 * Represents the compression information of data of one dimension
 * one dimension group in one blocklet
 */
public class ChunkCompressorMeta implements Serializable {

  /**
   * serialization version
   */
  private static final long serialVersionUID = -6697087170420991140L;

  /**
   * data chunk compressor
   */
  private CompressionCodec compressor;

  /**
   * total byte size of all uncompressed pages in this column chunk (including the headers)
   */
  private long uncompressedSize;

  /**
   * total byte size of all compressed pages in this column chunk (including the headers)
   */
  private long compressedSize;

  /**
   * @return the compressor
   */
  public CompressionCodec getCompressorCodec() {
    return compressor;
  }

  /**
   * @param compressor the compressor to set
   */
  public void setCompressor(CompressionCodec compressor) {
    this.compressor = compressor;
  }

  /**
   * @return the uncompressedSize
   */
  public long getUncompressedSize() {
    return uncompressedSize;
  }

  /**
   * @param uncompressedSize the uncompressedSize to set
   */
  public void setUncompressedSize(long uncompressedSize) {
    this.uncompressedSize = uncompressedSize;
  }

  /**
   * @return the compressedSize
   */
  public long getCompressedSize() {
    return compressedSize;
  }

  /**
   * @param compressedSize the compressedSize to set
   */
  public void setCompressedSize(long compressedSize) {
    this.compressedSize = compressedSize;
  }

}
